<?php

	/**
	 * @see Bike_Js_Ext_Obj
	 */
	require_once 'Bike/Js/Ext/Obj.php';
	
	
	abstract class Bike_Js_Ext_XType extends Bike_Js_Ext_Obj
	{
		static protected $_xType = Null;
		
		public function getConstXType()
		{
			$className = get_class($this);
			$res = '';
			eval('$res='.$className.'::$_xType;');
			return $res;
		}

		protected function initDefaultSettings()
		{
			parent::initDefaultSettings();
		
			$this->setSettings(array(
				'xtype' => $this->getConstXType(),
			));
		}
	}
